package com.redmoon.oa.flow.strategy;

import cn.js.fan.util.ErrMsgException;
import com.redmoon.kit.util.FileUpload;
import com.redmoon.oa.flow.MyActionDb;
import com.redmoon.oa.flow.WorkflowActionDb;
import com.redmoon.oa.flow.WorkflowDb;
import com.redmoon.oa.person.UserDb;

import javax.servlet.http.HttpServletRequest;
import java.util.Vector;

public class CheckInSecquence implements IStrategy {
    @Override
    public Vector<UserDb> selectUser(Vector<UserDb> userVector) {
        return userVector;
    }

    @Override
    public boolean onActionFinished(HttpServletRequest request, WorkflowDb wf, MyActionDb mad) {
        return true;
    }

    @Override
    public boolean isSelectable() {
        return true;
    }

    @Override
    public void setX(int x) {

    }

    @Override
    public void validate(HttpServletRequest request, WorkflowDb wf, WorkflowActionDb myAction, long myActionId, FileUpload fu, String[] userNames, WorkflowActionDb nextAction) throws ErrMsgException {

    }

    @Override
    public boolean isSelected() {
        return false;
    }

    @Override
    public boolean isGoDown() {
        return false;
    }

    /**
     * 节点上所匹配人员按顺序处理
     * @return
     */
    @Override
    public boolean isInSequence() {
        return true;
    }
}
